<?php
use Phalcon\Mvc\Controller;

class ControllerBase extends Controller{

	function initialize()
    {
		Phalcon\Tag::prependTitle('TD |');
        //$this->tag->prependTitle('INVO | ');
        $this->view->setTemplateAfter('main');
	}

    /**
     * @
     * @author zb
     * @param $uri
     * @return mixed
     */
    function forward($uri){
		$uriParts = explode('/', $uri);
        $params = array_slice($uriParts, 2);
    	return $this->dispatcher->forward(
    		array(
    			'controller' => $uriParts[0],
    			'action' => $uriParts[1],
                'params' => $params
    		)
    	);
	}

}